#pragma once
#include "data.h"

class CArray2D :
	public CData
{
public:
	CArray2D(int xsize, int ysize);
	~CArray2D(void);

	int& operator() (int x, int y);
	const int& operator() (int x, int y) const;

	inline int getXsize(void) { return xs; }
	inline int getYsize(void) { return ys; }

	class BadSize { };
	class BoundsViolations { };
private:
	int** arr2D;
	const int xs,ys;
};
